package oop.controller.action.levelconst;

import oop.controller.action.DefaultAction;
import oop.db.dao.LevelConstraintDAO;

public class DeleteAction extends DefaultAction {

	@Override
	public void performImpl() throws Exception {
		long testStructureId = getParams().getLong("test");
		long sectionStructureId = getParams().getLong("section");
		int level = getParams().getInt("level");
		LevelConstraintDAO.drop(sectionStructureId, level);
		setNextAction("teststruct.view&tsv_id=" + sectionStructureId);
		setNextAction("teststruct.view&tsv_id=" + testStructureId);
	}

}
